class CreatePersonStatuses < ActiveRecord::Migration
  def change
    create_table :person_statuses do |t|
      t.integer  :church_id,                  :null => false
      t.string   :name,                       :null => false
      t.text     :description
      t.boolean  :enabled,  :default => true, :null => false
      
      t.timestamps
    end
    add_index :person_statuses, :church_id,   :unique => false
    add_index :person_statuses, :name,        :unique => false
    add_index :person_statuses, :enabled,     :unique => false
  end
end
